#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START coreutils
# depends: acl
# depends: attr
# depends: libcap

reset_mtime coreutils coreutils/configure.ac
mkdir -p build/coreutils
cd build/coreutils
cat > config.cache << EOF
fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_func_working_mkstemp=yes
EOF

../../coreutils/configure \
	${CONFIGURE_ARGS} \
	--enable-install-program=hostname \
	--without-gmp \
	--without-selinux \
	--enable-acl \
	--enable-xattr \
	--enable-libcap \
	--cache-file=config.cache \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/coreutils

# RECIPE END coreutils
